import service from '@/utils/request'


// 获取单个收款明细信息
export const usePayDetailApi = (id: Number) => {
	return service.get('/receivePayDetail/' + id)
}

// 新增or修改收款明细信息
export const usePayDetailSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/receivePayDetail/update', dataForm)
	} else {
		return service.post('/receivePayDetail/save', dataForm)
	}
}
